#ifndef _TRIANGLE_H_
#define _TRIANGLE_H_

#include "point.h"

typedef struct _Triangle{
	Point * a;
	Point * b;
	Point * c;
	struct _Triangle * next;
} Triangle;

typedef struct _Circle{
	Point * s;
	double r;
} Circle;

Triangle * newTriangle();
void freeTriangle(Triangle * t);

void printTriangle(Triangle * t);

Circle * circumcircle(Triangle * t);

int compareTriangle(Triangle * t1, Triangle * t2);
int triangleContainsPoint(Triangle * t, Point * p);

#endif
